package cmd

import (
	"gitee.com/crack007/goose"
	"gitee.com/crack007/goose/core/command"
	"github.com/crack007/go-im/src/module/consumer/handle"
)

func NewConsumerCommand() *goose.ModuleBuilder {
	builder := command.NewCmdBuilder(handle.NewConsumerHandle())
	builder.EnableGraceful().EnableDebugFlag().EnableConfigFlag().EnablePprof()
	return goose.NewModuleBuilder(builder).SetName("msg").SetDesc("消息消费模块")
}
